// router.js
import { createRouter } from 'vue-router';
import About from "../pages/About/index.vue";
import Home from "../pages/Home/index.vue";

const routes = [
    { path: '/', component: Home },
    { path:"/about",component:About }
];

export default function (history) {
    return createRouter({
      history,
      routes
    })
}